package com.cdu.practicaltraining.care.mapper;

import com.cdu.practicaltraining.pojo.Patients;
import com.cdu.practicaltraining.pojo.Screening;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PatientsMapper {
    // 添加患者信息
    int insertPatients(Patients patients) throws Exception;
    // 根据患者身份证号查询患者信息
    Patients findByIdCard(String idcard) throws Exception;

    // 所有患者的信息
    List<Patients> findAll() throws Exception;

    // 患者筛查
    int insertScreening(Screening screening) throws Exception;

    // 根据患者id查询患者信息
    Patients findById(int id) throws Exception;
}
